3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
QuickDraw 3D provides a function that you can use to write custom objects. In general, you should call this function only within your custom write method.
You can use the Q3View_SubmitWriteData function to submit for writing the data associated with a custom object.
TQ3Status Q3View_SubmitWriteData (
TQ3ViewObject view,
TQ3Size size,
void *data,
void *deleteData);
The Q3View_SubmitWriteData function submits the data specified by the data and size parameters for writing in the view specified by the view parameter. You can call Q3View_SubmitWriteData in a custom object-traversal method to write the data of a custom object. Q3View_SubmitWriteData calls the write method associated with that custom object type to actually write the data to a file object. When the write method returns, Q3View_SubmitWriteData executes the data-deletion method specified by the deleteData parameter.
You should call this function only within a custom object-traversal method. See the chapter "File Objects" for more information about traversal methods.
Previous | QD3D Book | Overview | Chapter Contents | Next |